<%--
  Created by IntelliJ IDEA.
  User: wenze-zero
  Date: 2021-12-03 0003
  Time: 上午 09:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form action="${pageContext.request.contextPath}/third" method="post">
    <button type="submit" value="post">post</button>
    </form>
    <form action="${pageContext.request.contextPath}/third" method="get">
        <button type="submit" value="post">get</button>
    </form>

    <form action="${pageContext.request.contextPath}/forth" method="post">
        <button type="submit">post</button>
    </form>
    <form action="${pageContext.request.contextPath}/forth" method="get">
        <button type="submit">get</button>
    </form>

    <h3>get</h3>
    <form action="${pageContext.request.contextPath}/req1" method="get">
        <input type="text" name="user" value="user"><br>
        <input type="password" name="psw" ><br>
        <button type="submit">get</button>
    </form>

    <h3>post</h3>
    <form action="${pageContext.request.contextPath}/req1" method="post">
        <input type="text" name="user" value="user"><br>
        <input type="password" name="psw"><br>
        <button type="submit">post</button>
    </form>


    <h3>post</h3>
    <form action="${pageContext.request.contextPath}/req2" method="post">
        <input type="text" name="user" value="user"><br>
        <input type="password" name="psw"><br>
        <button type="submit">post</button>
    </form>

</body>
</html>
